const { Switch } = require("../lib/types");

module.exports = {
    name: "ngx_http_image_filter_module",
    map: {
        image_filter: [[Switch, String], false, ["http", "server", "location"]],
        image_filter_buffer: [String, "1m", ["http", "server", "location"]],
        image_filter_interlace: [Switch, false, ["http", "server", "location"]],
        image_filter_jpeg_quality: [Number, 75, ["http", "server", "location"]],
        image_filter_sharpen: [Number, 0, ["http", "server", "location"]],
        image_filter_transparency: [Switch, true, ["http", "server", "location"]],
        image_filter_webp_quality: [Number, 80, ["http", "server", "location"]]
    }
};